home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Musik & Kunst / Ear Workout 2.1 / source code / mac_util.cp < prev   
Text File  |  1995-11-28  |  814b  |  53 lines

  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <OSUtils.h>
  4. #include <QuickDraw.h>
  5. #include <Sound.h>
  6.  
  7. #include "Ninkasi:C++ util:generic.h"
  8. #include "Ninkasi:C++ util:complete_window.h"
  9. #include "ear_defines.h"
  10. #include "ear_decl.h"
  11. #include "ear_prototypes.h"
  12.  
  13.     void
  14. normal_text_style()
  15.     {
  16.       TextSize((short) normal_font_size);
  17.       TextFace((Style) normal_text_face);
  18.       TextFont((short) normal_font);
  19.     }
  20.  
  21.  
  22.  
  23.     void
  24. copy_pascal_string(Str255 to,Str255 from)
  25.     {
  26.       int i,n;
  27.       n = from[0];
  28.       for (i=0; i<=n; i++) {
  29.         to[i] = from[i];
  30.       }
  31.     }
  32.  
  33.     void
  34. arrow_cursor()
  35.     {
  36.       SetCursor(&arrow);
  37.     }
  38.     
  39.     void
  40. watch_cursor()
  41.     {
  42.       CursHandle ch;
  43.       ch = GetCursor(watchCursor);
  44.       if (!VALID_HANDLE(ch)) {
  45.         arrow_cursor();
  46.       }
  47.       else {
  48.         HLock((Handle) ch);
  49.         SetCursor(*ch);
  50.         HUnlock((Handle) ch);
  51.       }
  52.     }
  53.